package com.ldzy.dao;


import com.github.pagehelper.Page;
import com.ldzy.pojo.Achievement;
import com.ldzy.pojo.Student;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;



public interface BookMapper {

    public void edit(Student student);

    @Select("select * from student ")
    public Page<Student> selectNewBooks();

    @Select("select * from student where id=#{id}")
    public Student findById(int id);
    @Delete("delete from student where id=#{id}")
    public void deleteById(int id);
    @Select("select * from achievement ")
    public Page<Achievement> searchBorrowed();


}
